<?php

declare(strict_types=1);

namespace App\WorkEmployee\QueueService;

use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;
use App\WorkEmployee\Logic\SyncLogic as WorkEmployeeSyncLogic;

/**
 * 同步企业成员
 * Class EmployeeApply.
 */
class EmployeeApply
{
    /**
     * @var WorkEmployeeSyncLogic
     */
    protected $workEmployeeSyncLogic;

    /**
     * @AsyncQueueMessage(pool="employee")
     */
    public function handle(array $corpIds,array $params): void
    {
        var_export('成员同步');
        //成员同步
        (new WorkEmployeeSyncLogic())->handle($corpIds,$params);
    }
}
